#include "YGPlatform.h"

#include "YGRenderMethodManager.h"

#if (YG_OS_TYPE == YG_OS_TYPE_WINDOWSMOBILE)

	#include "WM6\YGRenderMethodManagerWM6.h"

#elif (YG_OS_TYPE == YG_OS_TYPE_ANDROID)

	#include "Android\YGRenderMethodManagerAndroid.h"

#endif

namespace YoghurtGum
{

	RenderMethodManager* RenderMethodManager::s_Instance = NULL;

#if (YG_OS_TYPE == YG_OS_TYPE_WINDOWSMOBILE)

	RenderMethodManager& RenderMethodManager::Get()
	{
		if (!s_Instance) { s_Instance = new RenderMethodManagerWM6(); }
		return *s_Instance;
	}

#elif (YG_OS_TYPE == YG_OS_TYPE_ANDROID)

	RenderMethodManager& RenderMethodManager::Get()
	{
		if (!s_Instance) { s_Instance = new RenderMethodManagerAndroid (); }
		return *s_Instance;
	}

#endif

	RenderMethodManager::RenderMethodManager()
	{
		
	}

	RenderMethodManager::~RenderMethodManager()
	{

	}

}; // namespace YoghurtGum